Ext.define('DragonApp.view.broadcast.Grid', {
    extend: 'DragonApp.view.foundation.Grid',

    alias: ['widget.broadcastgrid'],

    controller: 'broadcast',

    selModel: {
        selType: 'checkboxmodel'
    },
    requires: [
        'DragonApp.store.JsonPBroadcast',
        'DragonApp.view.broadcast.Bar'
    ],
    dockedItems: [{
        xtype: 'broadcast-bar',
        dock: 'top'
    }],
    columns: [
        { text: '序号', xtype: 'rownumberer', width: 70, align: 'center' },
        { text: '序号', dataIndex: 'id', align: 'center', hidden: true, hideable: false },
        { text: '开始时间', dataIndex: 'start_time', width: 145, align: 'center' },
        { text: '截止时间', dataIndex: 'end_time', width: 145, align: 'center' },
        { text: '间隔（秒）', dataIndex: 'interval', align: 'center' },
        { text: '服务器', dataIndex: 'server', align: 'center', renderer: 'serverRender' },
        { text: '正文', dataIndex: 'content', align: 'left', flex: 1, renderer: 'attrRender' },
        { text: '状态', dataIndex: 'status', align: 'center', renderer: 'statusRender' }
    ],
    store: {
        type: 'jsonPBroadcastStore',
        storeId : 'jsonPBroadcastStore'
    }
});